LEC=NO_ERROR, ACT=SYNCHRONIZING
Protocol Status Register
LEC | Last Error Code (set to 111 on read) 0 (NO_ERROR): No error occurred since LEC has been reset by successful reception or transmission. 1 (STUFF_ERROR): More than 5 equal bits in a sequence have occurred in a part of a received message where this is not allowed. 2 (FORM_ERROR): A fixed format part of a received frame has the wrong format. 3 (ACK_ERROR): The message transmitted by the MCAN was not acknowledged by another node. 4 (BIT1_ERROR): During the transmission of a message (with the exception of the arbitration field), the device wanted to send a recessive level (bit of logical value ‘1’), but the monitored bus value was dominant. 5 (BIT0_ERROR): During the transmission of a message (or acknowledge bit, or active error flag, or overload flag), the device wanted to send a dominant level (data or identifier bit logical value ‘0’), but the monitored bus value was recessive. During Bus_Off recovery this status is set each time a sequence of 11 recessive bits has been monitored. This enables the processor to monitor the proceeding of the Bus_Off recovery sequence (indicating the bus is not stuck at dominant or continuously disturbed). 6 (CRC_ERROR): The CRC check sum of a received message was incorrect. The CRC of an incoming message does not match with the CRC calculated from the received data. 7 (NO_CHANGE): Any read access to the Protocol Status Register re-initializes the LEC to ‘7’. When the LEC shows the value ‘7’, no CAN bus event was detected since the last processor read access to the Protocol Status Register. |
ACT | Activity 0 (SYNCHRONIZING): Node is synchronizing on CAN communication 1 (IDLE): Node is neither receiver nor transmitter 2 (RECEIVER): Node is operating as receiver 3 (TRANSMITTER): Node is operating as transmitter |
EP | Error Passive |
EW | Warning Status |
BO | Bus_Off Status |
FLEC | Fast Last Error Code (set to 111 on read) |
RESI | ESI Flag of Last Received CAN FD Message (cleared on read) |
RBRS | BRS Flag of Last Received CAN FD Message (cleared on read) |
REDL | Received a CAN FD Message (cleared on read) |